package com.nelson.infraredcontrol.manager;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;


/**
 * @author nelson
 * @since 2020-07-27
 */
public class RequestManager {

    private Retrofit mRetrofit;
    public static RequestManager sInstance = new RequestManager();

    private RequestManager() {
        // 测试代码
        Retrofit.Builder builder = new Retrofit.Builder();
        mRetrofit = builder.baseUrl("http://121.36.171.89:3000/") //设置网络请求的Url地址
            .addConverterFactory(GsonConverterFactory.create()) //设置数据解析器
            .build();
    }

    public static RequestManager getInstance() {
        return sInstance;
    }
}